package com.gp.gback.system.common.exception;

/**
 * Created by zhiyong.guo on 2017/8/16.
 */
public class SOAException extends RuntimeException {
    private static final long serialVersionUID = 6029038041214105194L;
    private SOAExceptionType errorType;
    private SOAExceptionCode errorCode;
    private Object errorData;

    public SOAException(SOAExceptionCode errorCode, SOAExceptionType errorType, String message) {
        super(message);
        this.errorType = errorType;
        this.errorCode = errorCode;
    }

    public SOAException(SOAExceptionCode errorCode, SOAExceptionType errorType, String message, Object errorData) {
        super(message);
        this.errorType = errorType;
        this.errorCode = errorCode;
        this.errorData = errorData;
    }

    public SOAExceptionType getErrorType() {
        return this.errorType;
    }

    public SOAExceptionCode getErrorCode() {
        return this.errorCode;
    }

    public Object getErrorData() {
        return this.errorData;
    }
}